package com.zx.zxapibackend.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.zx.zxapicommon.common.BaseResponse;
import com.zx.zxapicommon.model.entity.UserInterfaceInfo;
import com.zx.zxapicommon.model.to.LeftNumUpdateTo;

import javax.servlet.http.HttpServletRequest;

/**
* @author Bro
* @description 针对表【user_interface_info(用户调用接口关系)】的数据库操作Service
* @createDate 2023-05-12 15:56:48
*/
public interface UserInterfaceInfoService extends IService<UserInterfaceInfo> {

    void validUserInterfaceInfo(UserInterfaceInfo userInterfaceInfo, boolean add);
    boolean invokeCount(long interfaceId,long userId);

    BaseResponse getUserInterfaceLeftNum(HttpServletRequest request);

    BaseResponse updateUserLeftNum(LeftNumUpdateTo leftNumUpdateTo);
}
